package com.ctg.itrdc.sysmgr.permission.core.filter;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.web.filter.authc.LogoutFilter;

import com.ctg.itrdc.sysmgr.permission.core.utils.CookieUtils;

public class ExtLogoutFilter extends LogoutFilter {

	@Override
	protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception {
		CookieUtils.cleanCookie((HttpServletResponse) response, CookieUtils.CTG_USER);
		return super.preHandle(request, response);
	}

}
